update get_screen_data

FFIB 3 years ago
parent
commit
95e57711a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/eqpt_views.py

+ 1 - 1
api/eqpt_views.py

@@ -234,7 +234,7 @@ def get_screen_data(point=None, point_id=None):
234 234
     for eqpt in eqpts:
235 235
         status = eqpt.get('status')
236 236
         temperature = eqpt.get('temperature')
237
-        if temperature > settings.FEVER_TEMPERATURE:
237
+        if status == IsolationPointUserInfo.HAS_YET_UPLOAD and temperature > settings.FEVER_TEMPERATURE:
238 238
             eqpts_fever.append(eqpt)
239 239
         elif status == IsolationPointUserInfo.HAS_NOT_CONNECTED:
240 240
             eqpt['temperature'] = '-'